package cn.vcjf.weapp.api.goods.entity;

import cn.vcjf.weapp.common.web.PageModel;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.util.List;

/**
 * <p>
    * 
    * </p>
 *
 * @author zhengzihang
 * @since 2018-09-25
 */
@TableName("vc_goods_property")
public class GoodsProperty extends PageModel<GoodsProperty> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 商品分类ID
     */
    private Integer goodsTypeId;

    /**
     * 商品属性组名
     */
    private String proName;

    /**
     * 属性值
     */
    private String proValues;

    /**
     * 排序
     */
    private Integer sortNo;

    private Integer status;

    @TableField(exist = false)
    private List<GoodsPropertyValue> goodsPropertyValueList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getGoodsTypeId() {
        return goodsTypeId;
    }

    public void setGoodsTypeId(Integer goodsTypeId) {
        this.goodsTypeId = goodsTypeId;
    }
    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }
    public String getProValues() {
        return proValues;
    }

    public void setProValues(String proValues) {
        this.proValues = proValues;
    }
    public Integer getSortNo() {
        return sortNo;
    }

    public void setSortNo(Integer sortNo) {
        this.sortNo = sortNo;
    }
    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public List<GoodsPropertyValue> getGoodsPropertyValueList() {
        return goodsPropertyValueList;
    }

    public void setGoodsPropertyValueList(List<GoodsPropertyValue> goodsPropertyValueList) {
        this.goodsPropertyValueList = goodsPropertyValueList;
    }

    @Override
    public void preInsert(){
        super.preInsert();
    }
    @Override
    public void preUpdate(){
        super.preInsert();
    }
    @Override
    public String toString() {
        return "GoodsProperty{" +
        "id=" + id +
        ", goodsTypeId=" + goodsTypeId +
        ", proName=" + proName +
        ", proValues=" + proValues +
        ", sortNo=" + sortNo +
        ", status=" + status +
        ", createUser=" + createUser +
        ", createTime=" + createTime +
        ", updateUser=" + updateUser +
        ", updateTime=" + updateTime +
        ", deleteFlag=" + deleteFlag +
        ", sysUserId=" + sysUserId +
        "}";
    }
}
